package com.example.zhihu.mapper;

import com.example.zhihu.pojo.vo.UserVO;
import com.example.zhihu.utils.MyMapper;
import com.example.zhihu.pojo.Users;

import java.util.List;

public interface UserMapper extends MyMapper<Users> {

    public List<UserVO> userList();
    /**
     * @Description: 用户受喜欢数累加
     */
    public void addReceiveLikeCount(String userId);

    /**
     * @Description: 用户受喜欢数累减
     */
    public void reduceReceiveLikeCount(String userId);

    /**
     * @Description: 增加粉丝数
     */
    public void addFansCount(String userId);

    /**
     * @Description: 增加关注数
     */
    public void addFollowsCount(String userId);

    /**
     * @Description: 减少粉丝数
     */
    public void reduceFansCount(String userId);

    /**
     * @Description: 减少关注数
     */
    public void reduceFollowsCount(String userId);
}